/*
 * @Description: https://github.com/fengyuanchen/viewerjs#options 相关配置和方法都在这里了
 * @Author: LiuYan
 * @Date: 2022-02-21 15:44:14
 * @LastEditTime: 2022-04-13 16:12:45
 * @LastEditors: LiuYan
 * @Reference:
 */
import 'viewerjs/dist/viewer.css'
import VueViewer from 'v-viewer'
import Vue from 'vue'
//全局p配置
Vue.use(VueViewer, {
  defaultOptions: {
    zIndex: 99999999,
    viewed() {
      this.viewer.zoomTo(1)
    },
  },
})
/*
props  :options="options" 局部配置
<viewer @inited="inited"  ref="viewer" :images="images" v-show="false">
  <img v-for="src in images" :key="src" :src="src" />
</viewer>

 methods: {
  inited(viewer) {
     this.$viewer = viewer
  },
  onUcg() {
   this.$viewer.show()
  },
}
*/
